Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidArgument: add new create() method #542

Merged

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Sep 17, 2021

InvalidArgument: add new create() method

... to allow for standardizing the messages thrown via this Exception.

Note: the parent::__construct() method is not overloaded with a private version, so variation is still possible, just not recommended.

Includes adding a perfunctory unit test for the new method.

Transport classes: implement use of the new InvalidArgument::create() method

@jrfnl jrfnl added this to the 2.0.0 milestone Sep 17, 2021
src/Exception/InvalidArgument.php Outdated Show resolved Hide resolved
... to allow for standardizing the messages thrown via this Exception.

Note: the `parent::__construct()` method is not overloaded with a `private` version, so variation is still possible, just not recommended.

Includes adding a perfunctory unit test for the new method.
@jrfnl jrfnl force-pushed the feature/invalidargumentexception-add-create-method branch from b709233 to 30ad360 Compare September 17, 2021 09:58
@schlessera schlessera merged commit 849d151 into develop Sep 17, 2021
@schlessera schlessera deleted the feature/invalidargumentexception-add-create-method branch September 17, 2021 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants